//
//  AXMyEditAddressSexCell.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/11/14.
//  Copyright © 2018 tzhg. All rights reserved.
//

#import "AXMyEditAddressSexCell.h"

@implementation AXMyEditAddressSexCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self creatView];
        [self setlayout];
    }
    return self;
}

- (void)creatView {
    
    self.manBtn = [[UIButton alloc]init];
    [self.manBtn setImage:[UIImage imageNamed:@"sexSelect"] forState:UIControlStateNormal];
    [self.contentView addSubview:self.manBtn];
    
    self.manLabel = [[UILabel alloc]init];
    self.manLabel.text = @"先生";
    self.manLabel.textColor = COLOR_Gray;
    self.manLabel.font = FONT_FOURTEEN;
    [self.contentView addSubview:self.manLabel];
    
    self.womanBtn = [[UIButton alloc]init];
    [self.womanBtn setImage:[UIImage imageNamed:@"sexUnselect"] forState:UIControlStateNormal];
    [self.contentView addSubview:self.womanBtn];
    
    self.womanLabel = [[UILabel alloc]init];
    self.womanLabel.text = @"女士";
    self.womanLabel.textColor = COLOR_Gray;
    self.womanLabel.font = FONT_FOURTEEN;
    [self.contentView addSubview:self.womanLabel];
    
}


- (void)setlayout {
    
    self.manBtn.sd_layout
    .leftSpaceToView(self.contentView, 100)
    .topSpaceToView(self.contentView, 12)
    .widthIs(20)
    .heightIs(20);
    
    self.manLabel.sd_layout
    .leftSpaceToView(self.manBtn, 10)
    .topSpaceToView(self.contentView, 7)
    .widthIs(40)
    .heightIs(30);
    
    self.womanBtn.sd_layout
    .leftSpaceToView(self.manLabel, 30)
    .topSpaceToView(self.contentView, 12)
    .widthIs(20)
    .heightIs(20);
    
    self.womanLabel.sd_layout
    .leftSpaceToView(self.womanBtn, 10)
    .topSpaceToView(self.contentView, 7)
    .widthIs(40)
    .heightIs(30);
    
    
}


@end
